import 'package:json_annotation/json_annotation.dart';

part 'assetItemInfo.g.dart';


@JsonSerializable()


/// 资产列表项的详细信息
class AssetItemInfo{
  String itemContent; //"镜头-整洁度",
  String standardContent; //"无灰尘",
  int ifChoose; //1是 2否,
  List<String> chooseList; //["干净","有灰尘"],
  int status;  //"巡检结果：1：正常；2：异常",
  String explain; //"须填写",
  String pic;

  AssetItemInfo({this.itemContent, this.standardContent, this.ifChoose,
      this.chooseList, this.status, this.explain,
      this.pic});//"须填写,base64格式，中间用竖线隔开"

  AssetItemInfo.empty();

  //不同的类使用不同的mixin即可
  factory AssetItemInfo.fromJson(Map<String, dynamic> json) => _$AssetItemInfoFromJson(json);

  Map<String, dynamic> toJson() => _$AssetItemInfoToJson(this);
}